<div class="col-md-9">
      <ol class="breadcrumb">
      <li><a href="#">Ciclos Escolares</a></li>
      <li class="active">Nuevo</li>
    </ol>
     
      <hr>
			<div class="panel panel-primary">
				<div class="panel-heading">
          Formulario de Ciclos Escolares
          
        </div>
  				<div class="panel-body">
    			
  
	
<?php $form=$this->beginWidget('CActiveForm', array(
  'id'=>'ciclos-escolares-formCiclosEscolares-form',
  // Please note: When you enable ajax validation, make sure the corresponding
  // controller action is handling ajax validation correctly.
  // See class documentation of CActiveForm for details on this,
  // you need to use the performAjaxValidation()-method described there.
  'enableAjaxValidation'=>false,
   'htmlOptions'=>array('class'=>'form-horizontal', 'role'=>'form' )
)); ?>

  

  <?php echo $form->errorSummary($model); ?>

<div class="form-group">
    
     <?php echo $form->labelEx($model,'nombre', array('class' =>'col-lg-2' )); ?>
    <div class="col-lg-10">
      
      <?php echo $form->textField($model,'nombre', array('class' => 'form-control', 'placeholder'=>'Nombre del Ciclo')); ?>
      
    </div>
        <?php //echo $form->error($model,'nombre'); ?>
  </div>

 

  <div class="form-group">
    
     <?php echo $form->labelEx($model,'Fecha Inicio', array('class' =>'col-lg-2')); ?>
    <div class="col-lg-5">
      
      <?php
                    // widget
                    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                     'language'=>'es',
                     'model'=>$model,
                     'attribute'=>'fecha_inicio',
                     'flat'=>false,
                     'options'=>array(
                      'firstDay'=>1,
                      'showOn'=>"both",
                      //'buttonImage'=>"images/calendar.gif",
                      'buttonImageOnly'=> true,
                      //'minDate'=>-31,
                      //'maxDate'=>0,
                      'constrainInput'=>true,
                      'currentText'=>'Now',
                      'dateFormat'=>'yy-mm-dd',
                     ),
                    'htmlOptions'=>array('class' => 'form-control' )
                    ));
                   ?>             
      
    </div>
        <?php //echo $form->error($model,'nombre'); ?>
  </div>  
    
    <div class="form-group">
    
     <?php echo $form->labelEx($model,'Fecha Fin', array('class' =>'col-lg-2')); ?>
    <div class="col-lg-5">
      
      <?php
                    // widget
                    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                     'language'=>'es',
                     'model'=>$model,
                     'attribute'=>'fecha_fin',
                     'flat'=>false,
                     'options'=>array(
                      'firstDay'=>1,
                      'showOn'=>"both",
                      //'buttonImage'=>"images/calendar.gif",
                      'buttonImageOnly'=> true,
                      //'minDate'=>-31,
                      //'maxDate'=>0,
                      'constrainInput'=>true,
                      'currentText'=>'Now',
                      'dateFormat'=>'yy-mm-dd',
                     ),
                    'htmlOptions'=>array('class' => 'form-control' )
                    ));
                   ?>             
      
    </div>
        <?php //echo $form->error($model,'nombre'); ?>
  </div>  
  
  <div class="form-group">
    <div class="col-lg-offset-2 col-lg-10">
      <div class="checkbox">
        <label>

          <?php 
          if($model->activo=='1')
          {
          echo $form->checkBox($model,'activo', array('checked' =>'checked' ));
          }
          else
           echo $form->checkBox($model,'activo' ); 
           ?> Activo  
          
          
        </label>
      </div>
    </div>
  </div>

  <div class="form-group">
    <div class="col-lg-offset-2 col-lg-10">
      <?php echo CHtml::submitButton('Guardar',  array('class' => 'btn btn-primary' )); ?>
    </div>
  </div>

<?php $this->endWidget(); ?>

</div>
</div>


 
        </div><!--/span-->
		</div><!--cierre del col-md-->

	</div>